import { ref } from '@vue/composition-api'

export function useIETestService() {
  const obj: { [key: string]: any } = {
    name() {
      console.log('name')
    },
  }

  const ary = [1, 2, 3, 4]
  const refState = ref<number>(0)

  setInterval(() => {
    refState.value++

    obj?.name()

    console.log(obj?.age)

    console.log([...ary])
  }, 1000)

  return { refState }
}
